import { http } from "@/utils";
import { API_CONFIG } from "@/config/deepseekConfig";

// 获取 token 查看用户是否有余额，有余额才能使用
export const getTokens = (param: { deepseek: string; gptToken: string }) =>
  http({
    url: API_CONFIG.baseURL + "/user/balance",
    method: "GET",
    params: param,
  });
// 获取模型列表
export const getModels = (param: { deepseek: string; gptToken: string }) =>
  http({
    url: API_CONFIG.baseURL + "/models",
    method: "GET",
    params: param,
  });
